package com.zshan.clinic.admin.entity.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zshan.clinic.common.util.tree.TreeEntity;
import lombok.Data;

import java.util.List;


/**
 * 区域树结构
 * @author lichen
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class DictRegionTreeVo implements TreeEntity<DictRegionTreeVo> {

    public Long code;

    public String name;

    private Long pcode;

    private Integer level;


    public List<DictRegionTreeVo> children;


    @Override
    public Long getId() {
        return this.code;
    }

    @Override
    public Long getParentId() {
        return this.pcode;
    }
}
